﻿<baseClass:Control xmlns:baseClass="clr-namespace:EFS.RC.ConversationBrowser.Controls" x:Class="EFS.RC.ConversationBrowser.Controls.Search.Results"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	x:Name="results"
    mc:Ignorable="d"
	d:DesignWidth="1100"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*"></ColumnDefinition>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"></RowDefinition>
			<RowDefinition Height="0"></RowDefinition>
			<RowDefinition Height="*"></RowDefinition>
		</Grid.RowDefinitions>
		<sdk:Label Grid.Column="0" Grid.Row="0" Height="17" Content="Results: 0" HorizontalAlignment="Left" Margin="0,0,0,0" Name="labelResults" VerticalAlignment="Top" />
		<sdk:DataGrid Grid.Column="0" Grid.Row="2" AutoGenerateColumns="False" MinHeight="100" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="dataGridResults" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
			<sdk:DataGrid.Columns>
				<sdk:DataGridTemplateColumn Header="">
					<sdk:DataGridTemplateColumn.CellTemplate>
						<DataTemplate>
							<HyperlinkButton Content="Open" Name="hyperlinkButtonOpen" Click="hyperlinkButtonOpen_Click" VerticalAlignment="Center" HorizontalAlignment="Center"></HyperlinkButton>
						</DataTemplate>
					</sdk:DataGridTemplateColumn.CellTemplate>
				</sdk:DataGridTemplateColumn>
				<sdk:DataGridTextColumn Binding="{Binding Path=Occurred, TargetNullValue='N/A',StringFormat='dd/MM/yyyy HH:mm:ss'}" Header="Occurred" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=CustomerFirstName, TargetNullValue='N/A'}" Header="Customer Firstname" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=CustomerLastName, TargetNullValue='N/A'}" Header="Customer Lastname" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=AgentFirstName, TargetNullValue='N/A'}" Header="Agent Firstname" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=AgentLastName, TargetNullValue='N/A'}" Header="Agent Lastname" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=SupervisorFirstName, TargetNullValue='N/A'}" Header="Supervisor Firstname" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=SupervisorLastName, TargetNullValue='N/A'}" Header="Supervisor Lastname" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=CustomerName, TargetNullValue='N/A'}" Header="Customer Name" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=CustomerUri, TargetNullValue='N/A'}" Header="Customer Tel" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=HWPartyID, TargetNullValue='N/A'}" Header="HW Party ID" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=HWApplicantID, TargetNullValue='N/A'}" Header="HW Applicant ID" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=ConversationClassName, TargetNullValue='N/A'}" Header="Classification" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=CallDirection, TargetNullValue='N/A'}" Header="Call Direction" IsReadOnly="True" Width="Auto" CanUserSort="True" />
				<sdk:DataGridTextColumn Binding="{Binding Path=Duration, TargetNullValue='N/A'}" Header="Duration" IsReadOnly="True" Width="Auto" CanUserSort="True" />
			</sdk:DataGrid.Columns>
		</sdk:DataGrid>
	</Grid>
</baseClass:Control>